package com.melesta.payment.sms;

import com.melesta.payment.interfaces.IListener;
import com.melesta.payment.interfaces.IResponse;

public class SmsResponse
  implements IResponse
{
  private int code;
  private String data;
  private long internalId;
  private IListener listener;
  private String name;

  public int getCode()
  {
    return this.code;
  }

  public String getData()
  {
    return this.data;
  }

  public long getInternalId()
  {
    return this.internalId;
  }

  public String getName()
  {
    return this.name;
  }

  public void run()
  {
    if (this.code == -1)
    {
      this.listener.onPurchase(this.name, 1, this.internalId);
      return;
    }
    this.listener.onError(this.name, this.code, this.data);
  }

  public SmsResponse setCode(int paramInt)
  {
    this.code = paramInt;
    return this;
  }

  public SmsResponse setData(String paramString)
  {
    this.data = paramString;
    return this;
  }

  public void setInternalId(long paramLong)
  {
    this.internalId = paramLong;
  }

  public SmsResponse setListener(IListener paramIListener)
  {
    this.listener = paramIListener;
    return this;
  }

  public SmsResponse setName(String paramString)
  {
    this.name = paramString;
    return this;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.payment.sms.SmsResponse
 * JD-Core Version:    0.6.2
 */